package cn.com.shopec.erp.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name ="TBL_ACTIVITY")
public class ActivityInfo {
	
	private static final long serialVersionUID = -6870241038895341650L;
	
	/** ID */
	private String id;
	
	/** 活动编码 */
	private String activityCode;
	
	/** 活动名称 */
	private String activityName;
	
	/** 活动起始时间 */
	private String  beginTime;
	
	/** 活动结束时间 */
	private String endTime;
	
	/** 参与类型（0：品牌促销 1：货品促销） */
	private Integer partakeType;

	/** 删除标识（0：已删除 1：未删除） */
	private Integer deleteFlag;
	
	/** 活动级别（0：商品级别 1：订单级别） */
	private Integer activityLevel;

	
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "ACTIVITY_CODE")
	public String getActivityCode() {
		return activityCode;
	}

	public void setActivityCode(String activityCode) {
		this.activityCode = activityCode;
	}

	
	@Column(name ="ACTIVITY_NAME")
	public String getActivityName() {
		return activityName;
	}

	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}
	
	
	
	@Column(name ="BEGIN_TIME")
	public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}
	
	
	@Column(name ="END_TIME")
	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	
	@Column(name ="PARTAKE_TYPE")
	public Integer getPartakeType() {
		return partakeType;
	}

	public void setPartakeType(Integer partakeType) {
		this.partakeType = partakeType;
	}
	
	
	@Column(name ="DELETE_FLAG")
	public Integer getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Column(name = "ACTIVITY_LEVEL")
	public Integer getActivityLevel() {
		return activityLevel;
	}

	public void setActivityLevel(Integer activityLevel) {
		this.activityLevel = activityLevel;
	}

	
}
